package com.zeng.ssm.service.impl;

import com.zeng.ssm.api.SysUserService;
import com.zeng.ssm.dal.mapper.SysUserDao;
import com.zeng.ssm.dal.model.SysUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 描述信息
 *
 * @author zengwanlin
 * @date 2022-01-27T11:24
 */
@Service
public class SysUserServiceImpl implements SysUserService {

    @Resource
    private SysUserDao sysUserDao;

    @Override
    public List<SysUser> findAll() {
        return sysUserDao.findAll();
    }


    @Override
    public SysUser findById(String id) {
        return sysUserDao.selectByPrimaryKey(Integer.valueOf(id));
    }

}
